<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body style="font-family:Arial, Helvetica, sans-serif">
<h1>Shop <?php echo $this->shop;?> online Order Request Your Action:</h1>
<table width="600" border="1" cellspacing="0" cellpadding="10" style="font-size:13px;">
  <tr>
    <th scope="col"># Order</th>
    <th scope="col">Status</th>
    <th scope="col">Action</th>
  </tr>
<?php foreach($this->orderList as $k => $v){?>  
  <tr>
    <td>#<?php echo $v['id_order']?></td>
    <td>
    <?php 
	switch($v['status']){
		case(1) :{echo 'Order Allocated,Please Check Email!!';break;}
		case(14) :{echo 'Order Ready For Pickup';break;}
		case(15) :{echo 'Customer Picked Up';break;}
		case(16) :{echo 'Customer Didn\'t Buy, Released To Public';break;}
		case(17) :{echo 'Can Not Find Stock, HQ Follow Up';break;}
		}
	?>
    </td>
    <td><form id="form1" name="form1" method="post" action="">
      <?php  if($v['status'] == 1) {?>	
      <input type="submit" name="btn_ready" id="btn_ready" value="Found All Prodcuts, Wraped and Ready For Pickup" />
      <?php  } ?>
      <br /><br />
      <?php  if($v['status'] == 1) {?>
      <input type="submit" name="btn_cancel" id="btn_cancel" value="Searched In All Shops , Can Not Get Enough Stock" />
      <br /><br />
      <?php  } ?>
      <?php  if($v['status'] == 15 || $v['status'] == 17 || $v['status'] == 16 ) {?>
      <input type="submit" name="button3" id="button3" value="No More Action" disabled="disabled" />
      <?php  } ?>
      <br /><br />
      <?php  if($v['status'] == 14) {?>
      <input type="submit" name="btn_pickup" id="btn_pickup" value="Customer Come and Picked Up" />
      <br /><br />
      <?php  } ?>
      <input type="hidden" name="id_order" id="id_order" value="<?php echo $v['id_order']?>" />
      <br />
    </form></td>
  </tr>
<?php }?>  
  
</table>
<p>&nbsp;</p>
</body>
</html>
